package com.xinruke.hostels.reservation.user.interfaces.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @ClassName RegisterDTO
 * @CreateDate 2019/6/11
 * @Author FengXinQiang
 * @Version V1.0.0.0
 * @Decription 注册请求
 */
@ApiModel("注册请求")
public class RegisterDTO {
    @ApiModelProperty("姓名")
    @NotBlank(message = "姓名不能为空")
    private String xingming;
    @ApiModelProperty("性别0未知：1男；2女")
    @NotNull(message = "性别不能为空")
    private Byte xingbie;
    @ApiModelProperty("身份证号")
    @NotBlank(message = "身份证号不能为空")
    private String shenfenzhenghao;
    @ApiModelProperty("手机号")
    @NotBlank(message = "手机号不能为空")
    private String shoujihao;
    @ApiModelProperty("大单位")
//    @NotNull(message = "大单位不能为空")
    private Byte dadanwei;
    @ApiModelProperty("职级待遇")
//    @NotNull(message = "职级待遇不能为空")
    private Byte zhijiedaiyu;
    @ApiModelProperty("登录密码")
    @Length(min = 6, message = "密码最少6个字符")
    private String mima;

    public String getXingming() {
        return xingming;
    }

    public void setXingming(String xingming) {
        this.xingming = xingming;
    }

    public Byte getXingbie() {
        return xingbie;
    }

    public void setXingbie(Byte xingbie) {
        this.xingbie = xingbie;
    }

    public String getShenfenzhenghao() {
        return shenfenzhenghao;
    }

    public void setShenfenzhenghao(String shenfenzhenghao) {
        this.shenfenzhenghao = shenfenzhenghao;
    }

    public String getShoujihao() {
        return shoujihao;
    }

    public void setShoujihao(String shoujihao) {
        this.shoujihao = shoujihao;
    }

    public Byte getDadanwei() {
        return dadanwei;
    }

    public void setDadanwei(Byte dadanwei) {
        this.dadanwei = dadanwei;
    }

    public Byte getZhijiedaiyu() {
        return zhijiedaiyu;
    }

    public void setZhijiedaiyu(Byte zhijiedaiyu) {
        this.zhijiedaiyu = zhijiedaiyu;
    }

    public String getMima() {
        return mima;
    }

    public void setMima(String mima) {
        this.mima = mima;
    }
}
